<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>LCOV - code analysis - /usr/include/boost/date_time/gregorian/greg_day.hpp</title>
  <link rel="stylesheet" type="text/css" href="../../../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LCOV - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
          <tr>
            <td width="10%" class="headerItem">Current view:</td>
            <td width="35%" class="headerValue"><a href="../../../../../index.html">top level</a> - <a href="index.html">usr/include/boost/date_time/gregorian</a> - greg_day.hpp<span style="font-size: 80%;"> (source / <a href="greg_day.hpp.func-sort-c.html">functions</a>)</span></td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerCovTableHead">Hit</td>
            <td width="10%" class="headerCovTableHead">Total</td>
            <td width="15%" class="headerCovTableHead">Coverage</td>
          </tr>
          <tr>
            <td class="headerItem">Test:</td>
            <td class="headerValue">code analysis</td>
            <td></td>
            <td class="headerItem">Lines:</td>
            <td class="headerCovTableEntry">1</td>
            <td class="headerCovTableEntry">6</td>
            <td class="headerCovTableEntryLo">16.7 %</td>
          </tr>
          <tr>
            <td class="headerItem">Date:</td>
            <td class="headerValue">2020-09-11 22:50:33</td>
            <td></td>
            <td class="headerItem">Functions:</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntry">3</td>
            <td class="headerCovTableEntryLo">0.0 %</td>
          </tr>
          <tr>
            <td class="headerItem">Legend:</td>
            <td class="headerValueLeg">            Lines:
            <span class="coverLegendCov">hit</span>
            <span class="coverLegendNoCov">not hit</span>
</td>
            <td></td>
          </tr>
          <tr><td><img src="../../../../../glass.png" width=3 height=3 alt=""></td></tr>
        </table>
      </td>
    </tr>

    <tr><td class="ruler"><img src="../../../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td>
<pre class="sourceHeading">          Line data    Source code</pre>
<pre class="source">
<a name="1"><span class="lineNum">       1 </span>            : #ifndef GREG_DAY_HPP___</a>
<span class="lineNum">       2 </span>            : #define GREG_DAY_HPP___
<span class="lineNum">       3 </span>            : 
<span class="lineNum">       4 </span>            : /* Copyright (c) 2002,2003 CrystalClear Software, Inc.
<span class="lineNum">       5 </span>            :  * Use, modification and distribution is subject to the 
<span class="lineNum">       6 </span>            :  * Boost Software License, Version 1.0. (See accompanying
<span class="lineNum">       7 </span>            :  * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
<span class="lineNum">       8 </span>            :  * Author: Jeff Garland 
<span class="lineNum">       9 </span>            :  * $Date$
<span class="lineNum">      10 </span>            :  */
<span class="lineNum">      11 </span>            : 
<span class="lineNum">      12 </span>            : #include &quot;boost/date_time/constrained_value.hpp&quot;
<span class="lineNum">      13 </span>            : #include &lt;stdexcept&gt;
<span class="lineNum">      14 </span>            : #include &lt;string&gt;
<span class="lineNum">      15 </span>            : 
<span class="lineNum">      16 </span>            : namespace boost {
<span class="lineNum">      17 </span>            : namespace gregorian {
<a name="18"><span class="lineNum">      18 </span>            : </a>
<span class="lineNum">      19 </span>            :   //! Exception type for gregorian day of month (1..31)
<a name="20"><span class="lineNum">      20 </span><span class="lineNoCov">          0 :   struct bad_day_of_month : public std::out_of_range</span></a>
<span class="lineNum">      21 </span>            :   {
<span class="lineNum">      22 </span><span class="lineNoCov">          0 :     bad_day_of_month() : </span>
<span class="lineNum">      23 </span><span class="lineNoCov">          0 :       std::out_of_range(std::string(&quot;Day of month value is out of range 1..31&quot;)) </span>
<span class="lineNum">      24 </span><span class="lineNoCov">          0 :     {}</span>
<span class="lineNum">      25 </span>            :     //! Allow other classes to throw with unique string for bad day like Feb 29
<span class="lineNum">      26 </span>            :     bad_day_of_month(const std::string&amp; s) : 
<span class="lineNum">      27 </span><span class="lineNoCov">          0 :       std::out_of_range(s) </span>
<span class="lineNum">      28 </span>            :     {}
<span class="lineNum">      29 </span>            :   };
<span class="lineNum">      30 </span>            :   //! Policy class that declares error handling and day of month ranges
<span class="lineNum">      31 </span>            :   typedef CV::simple_exception_policy&lt;unsigned short, 1, 31, bad_day_of_month&gt; greg_day_policies;
<span class="lineNum">      32 </span>            : 
<span class="lineNum">      33 </span>            :   //! Generated represetation for gregorian day of month
<span class="lineNum">      34 </span>            :   typedef CV::constrained_value&lt;greg_day_policies&gt; greg_day_rep;
<span class="lineNum">      35 </span>            : 
<span class="lineNum">      36 </span>            :   //! Represent a day of the month (range 1 - 31) 
<span class="lineNum">      37 </span>            :   /*! This small class allows for simple conversion an integer value into
<span class="lineNum">      38 </span>            :       a day of the month for a standard gregorian calendar.  The type 
<span class="lineNum">      39 </span>            :       is automatically range checked so values outside of the range 1-31
<span class="lineNum">      40 </span>            :       will cause a bad_day_of_month exception
<span class="lineNum">      41 </span>            :   */
<span class="lineNum">      42 </span>            :   class greg_day : public greg_day_rep {
<span class="lineNum">      43 </span>            :   public:
<span class="lineNum">      44 </span>            :     greg_day(unsigned short day_of_month) : greg_day_rep(day_of_month) {}
<span class="lineNum">      45 </span>            :     unsigned short as_number() const {return value_;}
<span class="lineNum">      46 </span><span class="lineCov">    3426639 :     operator unsigned short()  const {return value_;}</span>
<span class="lineNum">      47 </span>            :   private:
<span class="lineNum">      48 </span>            :     
<span class="lineNum">      49 </span>            :   };
<span class="lineNum">      50 </span>            : 
<span class="lineNum">      51 </span>            : 
<span class="lineNum">      52 </span>            : 
<span class="lineNum">      53 </span>            : } } //namespace gregorian
<span class="lineNum">      54 </span>            : 
<span class="lineNum">      55 </span>            : 
<span class="lineNum">      56 </span>            : 
<span class="lineNum">      57 </span>            : #endif
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="ruler"><img src="../../../../../glass.png" width=3 height=3 alt=""></td></tr>
    <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.12</a></td></tr>
  </table>
  <br>

</body>
</html>
